package com.nue.controller;


import com.nue.service.ICheckApplyService;
import com.nue.util.CommonResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wk
 * @since 2020-08-27
 */
@RestController
@RequestMapping("/check-apply")
public class CheckApplyController {
    @Resource
    ICheckApplyService checkApplyService;
    @GetMapping("list")
    CommonResult list(Integer registerId){
        return checkApplyService.list(registerId);
    }
    @PostMapping("save")
    CommonResult save(Integer registerId,Integer[] itemId){
        System.out.println("病历号"+registerId);
        for(int a : itemId){
            System.out.print(a+" ");
        }
        return checkApplyService.save(registerId,itemId);
    }

}
